import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
import { DesktopItemDto } from '../component/desktop-item-cmp/desktop-item-dto';

@Injectable({
  providedIn: 'root'
})
export class DesktopService {

  constructor() { }

  public selectedItemList:BehaviorSubject<DesktopItemDto[]> = new BehaviorSubject<any>([]);



  // 刷新页面事件
  public refreshEvent:BehaviorSubject<any> = new BehaviorSubject<any>(null);
  public doRefresh(){
    this.refreshEvent.next(null);
  }


}
